package week08.MidEx;

//直升机在机场的适配类
public class HelicopterInAirPort implements InAirport{

    protected HelicopterImpl plane = null;

    public HelicopterInAirPort() {
        this.plane = new HelicopterImpl();
    }

    public HelicopterInAirPort(HelicopterImpl plane) {
        this.plane = plane;
    }

    @Override
    public void flying(){
        this.plane.launch();
        System.out.println("直升机flying--适配功能");
    }

}

